<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">

<ui:composition template="templates/unrestricted.xhtml">
    <ui:define name="title">JEE6 Home page</ui:define>
    
    <ui:define name="content">
        <h:form>
            <h:outputText id="time" value="#{scheduler.schedulerService.time}"/>
            <h:commandButton value="update">
                <f:ajax event="click" execute="@form" render="time"/>
            </h:commandButton>
        </h:form>
        <br/>
            <h:outputText value="#{hello.hello}"/> <h:outputText value="#{counter.counter}"/>
        <br/>
        <h:form>

            <h:inputText value="#{welcome.name}"/><br/>

            <h:commandButton value="submit"/><br/>
            <h:commandButton value="capitalize (ajax)" action="#{welcome.capitalize}">
                <f:ajax event="action" execute="@form" render="out"/>
            </h:commandButton><br/>
            <h:outputText value="#{welcome.message}" id="out"/>
        </h:form>
    </ui:define>

</ui:composition>
</html>